public class Demo 
{
	public static void main(String args[])
	{
		Employee e=new Employee();
		Manager m=new Manager();
		e.addObserver(m);//register for observing
		e.setSalary(1000);//changing the salary
		e.setSalary(2000);
	}

}
